﻿using System.Collections.Generic;
using Development.DataEntity;

namespace Development.Factory
{
    /// <summary>
    /// 存储和更新所有排行数据 常驻内存
    /// </summary>
    public class RankingFactory : FactoryDataBase
    {
        public override void Init()
        {
            CreateContainers(typeof(RankingEntity),true);
            foreach (var v in _containers.Values)
            {
                //5分钟刷新一次
                v.StartRanking(300);
            }
        }
    }
}
